package demo;

public class Demo04 {
    public static void main(String[] args) {
        int n = 103;
        int m = ~n+1;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(~n));
        System.out.println(Integer.toBinaryString(~n+1));


        int n1 = -2147483648;
        int m1 = ~n1+1;
        System.out.println(Integer.toBinaryString(n1));
        System.out.println(Integer.toBinaryString(~n1));
        System.out.println(Integer.toBinaryString(~n1+1));

    }
}
